package com.hdax.dm.api.scheduler.controller;

import com.hdax.dm.api.scheduler.OrderSchedulerControllerApi;
import com.hdax.dm.entity.scheduler.OrderScheduler;
import com.hdax.dm.service.OrderSchedulerPService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OrderSchedulerPController implements OrderSchedulerControllerApi {

    @Autowired
    private OrderSchedulerPService orderSchedulerPService;

    @Override
    public OrderScheduler price(Long x, Long y, Long scheduleId) {
        return orderSchedulerPService.getPrice(x, y, scheduleId);
    }

    @Override
    public boolean updateSeatState(String orderNo, Long userId, Long id) {
        return orderSchedulerPService.updateSeatState(orderNo, userId, id);
    }

    @Override
    public boolean updateSeatState3(String orderNo) {
        return orderSchedulerPService.updateSeatState3(orderNo);
    }

    @Override
    public boolean timeOutUpdateStart(String orderNo) {
        return orderSchedulerPService.timeOutUpdateStart(orderNo);
    }
}
